package com.dhq.handler;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Component;

@JobHandler(value="testHandler")
@Component
public class TestHandler extends IJobHandler {
    @Override
    public ReturnT<String> execute(String s) throws Exception {
        System.out.println("执行成功！！！！");
        XxlJobLogger.log("beat at: 执行成功！！！！");
        return ReturnT.SUCCESS;
    }
}